package com.king.juc.asynchronousmode;

import lombok.extern.slf4j.Slf4j;

/**
 * 消息类
 * @author king
 * @date 2020/11/5 19:39
 */
final public class Message {
    private int id;
    private Object value;

    public int getId() {
        return id;
    }

    public Object getValue() {
        return value;
    }

    public Message(int id, Object value) {
        this.id = id;
        this.value = value;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", value=" + value +
                '}';
    }
}
